#include <stdio.h>

int main()
{
    int a, b, c;
    while (scanf("%d %d %d", &a, &b, &c) != EOF)
    {
        printf("%d\n", a + b + c);       // total
        printf("%.2f", (a + b + c) / 3); // average
    }
    return 0;
}